/*
 * Created by LiuYou on 2020/11/26.
 *
 */

#include "Pc.hpp"
#include "PcImpl.hpp"

computer::Pc::Pc(int pcId, const std::string& pcFeature) : pImpl(std::make_shared<PcImpl>(pcId, pcFeature)) {

}

int computer::Pc::getPcId() const {
    return pImpl->getPcId();
}

const std::string& computer::Pc::getPcFeature() const {
    return pImpl->getPcFeature();
}

std::ostream& computer::operator<<(std::ostream& os, const computer::Pc& pc) {
    os << "pcId: " << pc.pImpl->getPcId() << " pcFeature: " << pc.pImpl->getPcFeature();
    return os;
}